import request from "@/utils/request";

// 查询企业微信客户端列表
export function listQyClient(query) {
  return request({
    url: "/qywx/qyClient/list",
    method: "get",
    params: query,
  });
}

// 查询企业微信客户端详细
export function getQyClient(id) {
  return request({
    url: "/qywx/qyClient/" + id,
    method: "get",
  });
}

// 新增企业微信客户端
export function addQyClient(data) {
  return request({
    url: "/qywx/qyClient",
    method: "post",
    data: data,
  });
}

// 修改企业微信客户端
export function updateQyClient(data) {
  return request({
    url: "/qywx/qyClient",
    method: "put",
    data: data,
  });
}

// 删除企业微信客户端
export function delQyClient(id) {
  return request({
    url: "/qywx/qyClient/" + id,
    method: "delete",
  });
}

// 导出企业微信客户端
export function exportQyClient(query) {
  return request({
    url: "/qywx/qyClient/export",
    method: "get",
    params: query,
  });
}

//启用禁用企业微信客户端
export function updateQyClientStatus(data) {
  return request({
    url: "/qywx/qyClient/updateStatus",
    method: "post",
    data: data,
  });
}


